home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / README < prev   
Encoding:
Text File  |  2003-01-21  |  2.0 KB  |  56 lines  |  [TEXT/R*ch]

  1. This directory contains a test suite for mysql daemon. To run
  2. the currently existing test cases, simply execute ./mysql-test-run in
  3. this directory. It will fire up the newly built mysqld and test it.
  4. Note that you do not have to have to do make install, and you could
  5. actually have a co-existing MySQL installation - the tests will not
  6. conflict with it.
  7.  
  8. All tests must pass. If one or more of them fail on your system, please
  9. read the following manual section of how to report the problem:
  10.  
  11. http://www.mysql.com/doc/M/y/MySQL_test_suite.html
  12.  
  13.  
  14. You can create your own test cases. To create a test case:
  15.  
  16.  cd t
  17.  vi test_case_name.test
  18.  
  19.  in the file, put a set of SQL commands that will create some tables,
  20.  load test data, run some queries to manipulate it.
  21.  
  22.  We would appreciate if the test tables were called t1, t2, t3 ... (to not
  23.  conflict too much with existing tables).
  24.  
  25.  Your test should begin by dropping the tables you are going to create and
  26.  end by dropping them again.  This will ensure that one can run the test
  27.  over and over again.
  28.  
  29.  If you are using mysqltest commands (like result file names) in your
  30.  test case you should do create the result file as follows:
  31.  
  32.  mysql-test-run --record test_case_name
  33.  
  34.  or
  35.  
  36.  mysqltest --record < t/test_case_name.test
  37.  
  38.  If you only have a simple test cases consistent of SQL commands and comments
  39.  you can create the test case one of the following ways:
  40.  
  41.  mysql-test-run --record test_case_name
  42.  
  43.  mysql test < t/test_case_name.test > r/test_case_name.result
  44.  
  45.  mysqltest --record --record-file=r/test_case_name.result < t/test_case_name.test
  46.  
  47.  When this is done, take a look at r/test_case_name.result
  48.  - If the result is wrong, you have found a bug;  In this case you should
  49.    edit the test result to the correct results so that we can verify
  50.    that the bug is corrected in future releases.
  51.  
  52. To submit your test case, put your .test file and .result file(s) into
  53. a tar.gz archive, add a README that explains the problem, ftp the 
  54. archive to ftp://support.mysql.com/pub/mysql/secret/ and send  a mail
  55. to bugs@lists.mysql.com
  56.